﻿Imports System.ComponentModel
Imports System.Collections.ObjectModel

Public Class Node
    Inherits PropertyChangedBase

    Private _Name As String
    Public Property Name As String
        Get
            Return _Name
        End Get
        Set(value As String)
            _Name = value
            OnPropertyChanged("Name")
        End Set
    End Property

    Private _Image As String
    Public Property Image As String
        Get
            Return _Image
        End Get
        Set(value As String)
            _Image = value
            OnPropertyChanged("Image")
        End Set
    End Property

    Public Overrides Function ToString() As String
        Return String.Format("""{0}"" [image = ""{1}"" label = """" shape = box];", Name, Image)
    End Function
End Class
